<?php
/*
 * This controller is pretty much like Thomas Meyer's 'Welcome'-controller,
 * from the Code Igniter-book.
 * We have here some controllers, that take control of generating the view,
 * of one specific view.(Often called the same as the controller-function)
 */
class publicsite extends CI_Controller
{
    function  __construct() {
        parent::__construct();

    }

    //Creates the about_us view
    function about_us()
    {
        $data['title'] = "About Us";
        $data['main_content'] = 'publicviews/about_us';
        $this->load->vars($data);
	$this->load->view('includes/template');
    }

    //Creates the FAQ view
    function faq()
    {
        $data['title'] = "FAQ";
        $data['main_content'] = 'publicviews/faq';
        $this->load->vars($data);
	$this->load->view('includes/template');
    }

    //Creates the contact view
    function contact()
    {
        $data['title'] = "Contact";
        $data['main_content'] = 'publicviews/contact';
        $this->load->vars($data);
	$this->load->view('includes/template');
    }

    //Creates the privacy view
    function privacy()
    {
        $data['title'] = "Privacy";
        $data['main_content'] = 'publicviews/privacy';
        $this->load->vars($data);
	$this->load->view('includes/template');
    }


}
?>

